﻿﻿<%@ page language="java" 	import="java.util.*,org.json.JSONArray,com.tjsinfo.tjsoa.common.DealString,com.tjsinfo.tjsoa.reminded.vo.TSystemReminded" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
DealString ds = new DealString();
String strLoginname = (String)request.getAttribute("loginname");
String menu=(String)request.getAttribute("menu");
Integer count=(Integer)request.getAttribute("count");
String relist=(String)request.getAttribute("relist");
List<TSystemReminded> remindList=(List)request.getAttribute("remindList");
String url=(String)request.getAttribute("url");
TSystemReminded remind=null;
%>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>天津市粮油集团有限公司</title>
<meta name="keywords" content="粮油" />
<meta http-equiv="X-UA-Compatible"content="IE=9; IE=8; IE=7; IE=EDGE"> 
<link href="<%=basePath%>articles/style/test.css" type="text/css" rel="stylesheet" />
<link href="<%=basePath%>articles/style/component.css" type="text/css" rel="stylesheet" />
<script src="<%=basePath%>articles/js/swfobject_modified.js" type="text/javascript"></script>
<script src="<%=basePath%>articles/js/jquery-1.8.3.js" type="text/javascript"></script>
<script src="<%=basePath%>articles/js/scroll.js" type="text/javascript"></script>

<script type="text/javascript">
var ding='9';
var total=<%=count%>;
function show1(){
	//document.getElementById("prev").style.display="block";
	ding++;
	//alert(ding);
	if(ding>9 && ding<(total+1)){
		document.getElementById("prev").style.display="block";
		document.getElementById("next").style.display="block";
	}
	if(ding==(total+1)){
		document.getElementById("prev").style.display="block";
		document.getElementById("next").style.visibility="hidden";
	}
}
function show2(){
	ding--;
	if(ding<=9){
		document.getElementById("prev").style.visibility="hidden";
		document.getElementById("next").style.display="block";
	}
}
function tips_pop(){
  var MsgPop=document.getElementById("winpop");
  var popH=parseInt(MsgPop.style.height);//将对象的高度转化为数字
   if (popH==0){
   MsgPop.style.display="block";//显示隐藏的窗口
  show=setInterval("changeH('up')",2);
   }
  else { 
   hide=setInterval("changeH('down')",2);
  }
}
function changeH(str) {
 var MsgPop=document.getElementById("winpop");
 var popH=parseInt(MsgPop.style.height);
 if(str=="up"){
  if (popH<=100){
  MsgPop.style.height=(popH+44).toString()+"px";
  }
  else{  
  clearInterval(show);
  }
 }
 if(str=="down"){ 
  if (popH>=4){  
  MsgPop.style.height=(popH-44).toString()+"px";
  }
  else{ 
  clearInterval(hide);   
  MsgPop.style.display="none";  //隐藏DIV
  }
 }
}

window.onload=function(){//加载
	if((total+1)<=9){
		document.getElementById("prev").style.display="none";
		document.getElementById("next").style.display="none";
	}else{
		document.getElementById("prev").style.display="none";
		document.getElementById("next").style.display="block";
	}
<%if(url != null){%>;
document.all.iframe.src='<%=basePath + url %>';
<%}else{%>
document.all.iframe.src='<%=basePath %>tjsinfo/tjsoa/articles/shouyenews.do';
<%}%>
<%if(Integer.valueOf(relist)>0){%>
document.getElementById('winpop').style.height='0px';
<%}else{%>
document.getElementById('winpop').style.height='1px';
<%}%>
setTimeout("tips_pop()",800);//3秒后调用tips_pop()这个函数
}
</script>
<script type="text/javascript">
		$(function(){		   
           DY_scroll('.img-scroll','.prev','.next','.img-list',0,false);
		});
</script>
<script type="text/javascript" language="javascript">
function iFrameHeight() {
        var ifm= document.getElementById("iframe");

        var subWeb = document.frames ? document.frames["iframe"].document : ifm.contentDocument;

            if(ifm != null && subWeb != null) {
            ifm.height = subWeb.body.scrollHeight;
//           alert(subWeb.body.scrollHeight);
            }
    }
</script>
<%--<script>  
function imgLazyLoad(){//扫描需要加载的div  
    $.each($("#flash"),function(i,o){         
        //获取窗口高       
        var windowHeight=$(window).height();  
        //获取滚动条  
        var scrollTop=$(document).scrollTop();  
        windowHeight=windowHeight; //可以设置滚动条在显示某个高度来lazyload   windowHeight=windowHeight/2; 比如在显示屏幕高度2分之1的时候加载  
          
          
        //先判断是否是加载完的图片 跳出  
        if($(o).attr("movie")==$(o).attr("value")){  
            return true;  
        }else if( $(o).offset().top<=(scrollTop+windowHeight)  && $(o).offset().top >= scrollTop ){//判断div是不是出在可见的位置  
            if($(o).attr("value") != undefined || $(o).attr("value") != "undefined" ){  
                var ObjectSrc = $(o).attr("value");  
                //把pic的值赋给src值  
                $(o).attr("movie",ObjectSrc);  
                //css属性改为可见  
                $(o).css("visibility","visible");  
                //渐变时间和渐变值  
                $(o).fadeTo(1000,1.00);  
            }  
        }                 
    });   
}  
$(function(){//页面第一次加载时  
    imgLazyLoad();//初始化  
    //判断浏览器  
    if($.browser.msie){  
        //IE浏览器  
        $(window).scroll(imgLazyLoad);//浏览器的兼容  
    }else {  
        //其他浏览器 ff chrome 测试通过  
        $(document).scroll(imgLazyLoad);//当滚动条滚动时,扫描需要加载的div  
    }  
      
    //$("body").scroll(imgLazyLoad);//浏览器的兼容   不清楚是哪款浏览器  
});  
</script>  
  
--%></head>
     
<body>
<div id="winpop">
<div class="title">您有<%=Integer.valueOf(relist) %>条特殊提醒！</div>
    <div class="con">
    <%{%><% String title="";
    if(remindList.size()>0){
         if(remindList.size()==1){
                    remind = remindList.get(0);   
					title=remind.getTitle();
					title=ds.SubStr(title,13);%>
					<li class="one"><a onclick="document.all.iframe.src='<%=basePath %>tjsinfo/tjsoa/reminded/remindedSendList.do'"><%=title %></a></li>	
					<%} }%>
	     <% if(remindList.size()==2){
	                for(int i=0;i<2;i++){
						remind = remindList.get(i);   
						title=remind.getTitle();
						title=ds.SubStr(title,13);%>
						<li class="two"><a onclick="document.all.iframe.src='<%=basePath %>tjsinfo/tjsoa/reminded/remindedSendList.do'"><%=title %></a></li>	
	                <%} }%>
	      <% if(remindList.size()>=3){
	                for(int i=0;i<3;i++){
						remind = remindList.get(i);   
						title=remind.getTitle();
						title=ds.SubStr(title,13);%>
						<li class="three"><a onclick="document.all.iframe.src='<%=basePath %>tjsinfo/tjsoa/reminded/remindedSendList.do'"><%=title %></a></li>	
	                <%} }%><%} %>
    </div>
</div>
<div class="header">
 <div class="logo_line">
  <div class="logo">
  <!--<a href="#" title="返回首页" name="ddnav_logo"> 
    <img src="articles/images/OA_03.png" width="500" height="78" alt="天津市粮油集团有限公司" border=0/></a>  -->
    <span><img src="<%=basePath %>articles/images/mima_img.png" />
    <a href="<%=basePath%>tjsinfo/tjsoa/articles/shouye.do?url=system/changepassword.jsp" target="_parent">密码修改</a></span>
    <span><img src="<%=basePath%>articles/images/sys_oa.png"/>
   <%{%><%String base="";
   if(basePath.contains("192.168.1.") && !basePath.contains("60")) {base = "http://192.168.1.243:8080/lyoa/login.jsp";}else {base = "http://60.29.159.140:8080/lyoa/login.jsp";}%>
   <a href="<%=base %>" target="_blank">原OA链接</a><%} %></span>
   <span><img src="<%=basePath%>articles/images/jituan-wangzhan.png"/>
   <%{%><%String base="";
      if(basePath.contains("192.168.1.") && !basePath.contains("60")) {base = "http://192.168.1.243";}else {base = "http://60.29.159.140";}%>
   <a href="<%=base %>" target="_blank">集团网站</a><%} %></span>
   <span><img src="<%=basePath%>articles/images/close.png"/><a href="<%=basePath %>tjsinfo/tjsoa/system/stepOut.do">退出</a></span><span style="width:120px"><img src="<%=basePath%>articles/images/sys_top.png"><a>您好，<%=strLoginname %></a></span>
  </div>
 </div>
</div>
<div class="banner_fla">
<div class="flash" id="flash">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="980" height="90" id="FlashID" title="flash">
    <param name="movie" value="<%=basePath%>articles/flash/fla-3.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="15.0.0.0" />
    <!-- 此 param 标签提示使用 Flash Player 6.0 r65 和更高版本的用户下载最新版本的 Flash Player。如果您不想让用户看到该提示，请将其删除。 -->
    <param name="expressinstall" value="<%=basePath%>articles/flash/expressInstall.swf" />
    <!-- 下一个对象标签用于非 IE 浏览器。所以使用 IECC 将其从 IE 隐藏。 -->
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="<%=basePath%>articles/flash/fla-3.swf" width="980" height="157">
      <!--<![endif]-->
      <param name="quality" value="high" />
      <param name="wmode" value="opaque" />
      <param name="swfversion" value="15.0.0.0" />
      <param name="expressinstall" value="<%=basePath%>articles/flash/expressInstall.swf" />
      <!-- 浏览器将以下替代内容显示给使用 Flash Player 6.0 和更低版本的用户。 -->
      <div>
        <h4>此页面上的内容需要较新版本的 Adobe Flash Player。</h4>
        <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="获取 Adobe Flash Player" width="112" height="33" /></a></p>
      </div>
      <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
  </object>
</div>
</div>
<div class="clean" style="height:2px;"></div>
 <div class="container img-scroll"> 
	<div class="nav04 img-list" id="main_top">
		<span class="next" ><img id="next" src="<%=basePath %>articles/images/left.png" onclick="show1();" style="display:none;"/></span>  
		<span class="prev" ><img id="prev" src="<%=basePath %>articles/images/right.png" onclick="show2();" style="display:none;"/></span>  	  
        <ul id="mainul" style="align:center;"> 	      
           	<li>
              	<a href="<%=basePath %>articles/link.jsp?strUrl=tjsinfo/tjsoa/articles/shouye.do" style="cursor:pointer;" target="_parent">系统首页</a>
            </li>
            <%=menu %> 
             
          </ul>   
    </div>
 </div>

<div>
<%--<iframe id="iframe" src="<%=basePath %>tjsinfo/tjsoa/articles/shouyenews.do" frameborder="0" width="100%" height="780px" scrolling="auto"></iframe>--%>
<iframe id="iframe" src="" marginheight="0" marginwidth="0" frameborder="0" scrolling="no" width="100%" height="100%" name="iframepage" onload="iFrameHeight()"></iframe>
</div>

<div class="clean"></div>

<div class="footer">
   <!--  <div class="footer_nav"></div>  -->
    <div class="footer_bottom">
     <p>地址：天津市红桥区西青道58号　邮编：300122　电话：022-27320208　传真：022-27725519　投稿信箱：tjcoc@tjcoc.com</p>
    </div>
</div>
</body>

</html>
